<?php if (!defined('THINK_PATH')) exit();?><table class="table table-bordered">
    <thead>
        <tr>
            <th>车辆编号</th>
            <th>车型</th>
            <th>所在地</th>
            <th>车牌号</th>
            <?php if($status == 0): ?><th>等级</th>
                <th>自收时间</th>
                <th width="7%">付款状态</th><?php endif; ?>
            <?php if($status == 1 OR $status == 2): ?><th>提交时间</th><?php endif; ?>
            <?php if($status == 3 OR $status == 4): ?><th>车商联系人</th>
                <th>联系人电话</th>
                <th>成交时间</th><?php endif; ?>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><tr>
                <td class="mcenter"><?php echo ($vo["sno"]); ?></td>
                <td><a href="<?php echo U('Car/report',['car_id'=>$vo['car_id']]);?>" target="_blank" class="cheText"><?php echo ($vo["car_model"]); ?></a></td>
                <td class="mcenter"><?php echo ($vo["location_area"]); ?></td>
                <td class="mcenter"><?php echo ($vo["plate_number"]); ?></td>
                <?php if($status == 0): ?><td class="mcenter"><?php echo ($vo["car_level"]); ?></td>
                    <td class="mcenter"><?php echo ($vo["self_receive_time"]); ?></td>
                    <td class="mcenter">
                        <?php echo ($vo["pay_status"]); ?>
                       <!-- <?php if($vo["pay_status_code"] == 2): if($vo["pay_status_type"] == 21): ?>(100%)
                                <?php elseif($vo["pay_status_type"] == 22): ?>
                                (50%)
                                <?php elseif($vo["pay_status_type"] == 23): ?>
                                (0%)<?php endif; endif; ?>-->
                    </td><?php endif; ?>
                <?php if($status == 1 OR $status == 2): ?><td class="mcenter"><?php echo ($vo["dealtime"]); ?></td><?php endif; ?>
                <?php if($status == 3 OR $status == 4): ?><td class="mcenter"><?php echo ($vo["dealer_contact_person"]); ?></td>
                    <td class="mcenter"><?php echo ($vo["dealer_contact_mobile"]); ?></td><?php endif; ?>
                <?php if($status == 3): ?><td class="mcenter"><?php echo ($vo["transfer_success_time"]); ?></td>
                    <?php elseif($status == 4): ?>
                    <td class="mcenter"><?php echo ($vo["dealtime"]); ?></td><?php endif; ?>

                <td class="mcenter">
                    <?php if($vo["status"] > 0): ?><a href="<?php echo U('SelfReceiveCar/self_receive_car_view',['status'=>$status,'id'=>$vo['src_id']]);?>" target="_blank">查看</a>
                        <?php else: ?>
                        <a href="<?php echo U('SelfReceiveCar/self_receive_car_deal',['status'=>$status,'id'=>$vo['src_id']]);?>">处理</a><?php endif; ?>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>
<div class="pageFaye">
    <div class="pager"><?php echo ($page); ?></div>
    <div class="clear"></div>
</div>